package com.easy.dao;

import com.easy.bean.Detail;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IDetailDao {
    Detail getDeliveryDetailByID(int id);
    Detail getReceiptDetailByID(int id);
    List<Detail> getDeliveryDetail(@Param("detail") Detail detail, @Param("page") Page page);
    List<Detail> getReceiptDetail(@Param("detail") Detail detail, @Param("page") Page page);
    int getDeliveryCount(@Param("detail") Detail detail);
    int getReceiptCount(@Param("detail") Detail detail);



    int delDeliveryDetail(int id);
    int delReceiptDetail(int id);

    int addDeliveryDetail(Detail detail);
    int addReceiptDetail(Detail detail);


}
